import request from '@/utils/request'

// 登录接口
export const loGinAi = (data) => request.post('/user/login', data)

// 获取用户信息
export const getUserInfo = () => request.get('/user/currentUser')
// 退出登录
export const logout = () => request.get('/user/logout')

// 获取收藏接口
export const collect = (token) => {
  return request.get('/user/favorites', {
    headers: {

      authorization: token
    }
  })
}
